.PHONY:all
all:server tcp_svr tcp_cli client1 client2 client3 client4 client5 client6

client1:client1.cc	
	g++ -o $@ $^ -std=c++11
client2:client2.cc	
	g++ -o $@ $^ -std=c++11
client3:client3.cc	
	g++ -o $@ $^ -std=c++11
client4:client4.cc	
	g++ -o $@ $^ -std=c++11
client5:client5.cc	
	g++ -o $@ $^ -std=c++11
client6:client6.cc	
	g++ -o $@ $^ -std=c++11


server:server.cc
	g++ -o $@ $^ -std=c++11
tcp_svr:tcp_svr.cc
	g++ -o $@ $^ -std=c++11 -g
tcp_cli:tcp_cli.cc
	g++ -o $@ $^ -std=c++11

.PHONY:clean
clean:
	rm -rf server tcp_svr tcp_cli